package com.library.controller;


import com.library.vo.BaseResult;
import lombok.Getter;

/**
 * 内部code异常
 *
 * @author qiss
 */
public class RCException extends RuntimeException {

  private static final long serialVersionUID = 2359767895161832954L;

  private final BaseResult resultCode;

  /**
   * 异常信息
   */
  public RCException(String message) {
    super(message);
    this.resultCode = BaseResult.fail("");
  }


  public static long getSerialVersionUID() {
    return serialVersionUID;
  }

  public BaseResult getResultCode() {
    return resultCode;
  }
}
